/*
 * Copyright (c) 2022 Kirky
 * Licensed under the Open Software Licence, Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://opensource.org/licenses/osl-3.0.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lingeringdream.luciole.model.entity;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Column;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

/**
 * @author Kirky
 * @version 1.0
 * @date 2022/4/28
 */
@Entity(tableName = "news")
public class News extends OrmObject {

    @PrimaryKey(autoGenerate = true)
    private Integer id;

    @Column(name = "nid", notNull = true, unique = true, index = true)
    private Long nid;

    @Column(name = "title", notNull = true)
    private String title;

    @Column(name = "label", notNull = true)
    private String label;

    @Column(name = "belong", notNull = true)
    private Long belong;

    @Column(name = "publication", notNull = true)
    private Long publicationTime;

    @Column(name = "picuri")
    private String picUri;

    @Column(name = "cardmode", notNull = true)
    private int cardMode;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getNid() {
        return nid;
    }

    public void setNid(Long nid) {
        this.nid = nid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Long getBelong() {
        return belong;
    }

    public void setBelong(Long belong) {
        this.belong = belong;
    }

    public Long getPublicationTime() {
        return publicationTime;
    }

    public void setPublicationTime(Long publicationTime) {
        this.publicationTime = publicationTime;
    }

    public String getPicUri() {
        return picUri;
    }

    public void setPicUri(String picUri) {
        this.picUri = picUri;
    }

    public int getCardMode() {
        return cardMode;
    }

    public void setCardMode(int cardMode) {
        this.cardMode = cardMode;
    }
}
